/**
 *  NetLogo Constant  Specification
 *
 * 
 *   @author NetLogo
 */



package model;
/** For any parameter that is fixed for the search.
 */
public strictfp class ConstantSpec extends ParameterSpec {
	private Object obj;
	
	public ConstantSpec(String name, Object obj) {
		super(name);
		this.obj = obj;
	}

	@Override
	public long choiceCount()
	{
		return 1 ;
	}

	@Override
	public String toString()
	{
		return "[ \"" + name + "\" " + obj + " ]";
	}

	@Override
	public Object getValueFromChoice(long choice, long maxNumChoices) {
		return obj;
	}
	
}
